package cn.net.withub.dataCollector.web.model;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;

@XmlRootElement
@XmlType(name="YS",propOrder={"yskey","ysms","ysval"})
public class XMLYskeyVal {

    private String yskey;
    private String ysms;
    private String ysval;

    public XMLYskeyVal() {
    }

    public XMLYskeyVal(String yskey, String ysms, String ysval) {
        this.yskey = yskey;
        this.ysms = ysms;
        this.ysval = ysval;
    }

    @XmlAttribute(name="CODE")
    public String getYskey() {
        return yskey;
    }

    public void setYskey(String yskey) {
        this.yskey = yskey;
    }

    @XmlAttribute(name="NAME")
    public String getYsms() {
        return ysms;
    }

    public void setYsms(String ysms) {
        this.ysms = ysms;
    }

    //@XmlElement(name = "YS")
    @XmlValue
    public String getYsval() {
        return ysval;
    }

    public void setYsval(String ysval) {
        this.ysval = ysval;
    }
}